How to get the Index of Currently Selected Row in DataGridView using C# Mark Devid598105-Oct-2013How do I get the index of the currently selected Row of a DataGridView?I don't want the Row object, I want the index (0 .. n).c#c# Updated on 05-Oct-2013
Dag Hammarskjold
05-Oct-2013There is the RowIndex property for the CurrentCell property for the DataGridView.
Handle the SelectionChanged event and find the index of the selected row as above.